<template>
  <router-view/>
</template>
<script>
import { useStore } from 'vuex'
export default {
  setup(){
    const store=useStore()
    window.addEventListener('beforeunload',()=>{
      store.commit('close')
    })
    store.dispatch('autoConnect')
  }
}
</script>
<style lang="stylus">
@import '~@/assets/resest.css';
#app
  max-width: 450Px;
  margin: 0 auto;
@media (min-width:450px) {
  html{
    font-size 37.5Px!important
  }
}
* {
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  -khtml-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none;
}

</style>